<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 声明方式  键值对的形式 key-value
        let m = new Map()
        //添加
        m.set("name","zs")
        console.log(m);

        // 查询
        console.log(m.get("name"))//zs

        // 删除
        m.delete("name")
        console.log(m);

        let m1 = new Map([['name',"zs" ],["age", "19"]])
        console.log(m1);
    </script>
</body>
</html>